﻿using System;
/*
 * Write an expression that checks for given integer if its third digit (right-to-left) is 7. E. g. 1732  true.
 */

class IsThirdDigit7
{
    static void Main(string[] args)
    {
        int a = 1756;
        bool isThirdDigit7 = ((a % 1000) / 100) == 7;
        Console.WriteLine("The third digit of {0} is 7: {1}", a, isThirdDigit7);
    }
}

